package com.mate.cloud.datascope.domain;

import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;


/**
 * 排序
 * @author:         MI
 * @email:          448341911@qq.com
 * @createTime:     2024/4/23 20:42
 * @updateUser:     MI
 * @updateTime:     2024/4/23 20:42
 * @updateRemark:   修改内容
 * @version:        v1.0
 */
@Data
public class Sort {

    @NotBlank(message = "字段名不能为空")
    @ApiModelProperty("字段名")
    private String field;

    @NotNull(message = "是否升序不能为空")
    @ApiModelProperty("是否升序")
    private Boolean asc;
}
